package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 地区信息对象 sys_region
 * 
 * @author ruoyi
 * @date 2024-12-19
 */
public class SysRegion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 地区ID */
    private Long regionId;

    /** 地区编码 */
    @Excel(name = "地区编码")
    private String regionCode;

    /** 地区名称 */
    @Excel(name = "地区名称")
    private String regionName;

    /** 父级地区ID */
    @Excel(name = "父级地区ID")
    private Long parentId;

    /** 地区级别(1省份 2城市 3区县) */
    @Excel(name = "地区级别", readConverterExp = "1=省份,2=城市,3=区县")
    private Integer regionLevel;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Integer orderNum;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setRegionId(Long regionId) 
    {
        this.regionId = regionId;
    }

    public Long getRegionId() 
    {
        return regionId;
    }

    public void setRegionCode(String regionCode) 
    {
        this.regionCode = regionCode;
    }

    public String getRegionCode() 
    {
        return regionCode;
    }

    public void setRegionName(String regionName) 
    {
        this.regionName = regionName;
    }

    public String getRegionName() 
    {
        return regionName;
    }

    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }

    public void setRegionLevel(Integer regionLevel) 
    {
        this.regionLevel = regionLevel;
    }

    public Integer getRegionLevel() 
    {
        return regionLevel;
    }

    public void setOrderNum(Integer orderNum) 
    {
        this.orderNum = orderNum;
    }

    public Integer getOrderNum() 
    {
        return orderNum;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("regionId", getRegionId())
            .append("regionCode", getRegionCode())
            .append("regionName", getRegionName())
            .append("parentId", getParentId())
            .append("regionLevel", getRegionLevel())
            .append("orderNum", getOrderNum())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}